package com.ruoyi.fly.mapper;


import com.ruoyi.fly.domain.AmountView;
import com.ruoyi.fly.domain.Referralrewards;
import com.ruoyi.fly.domain.ShareAmountView;
import com.ruoyi.fly.domain.vo.AmountViewVo;
import com.ruoyi.fly.domain.vo.ReferralrewardsVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 分享消费奖励Mapper接口
 */
@Repository
public interface ReferralrewardsMapper 
{
    /**
     * 查询分享消费奖励
     * 
     * @param id 分享消费奖励主键
     * @return 分享消费奖励
     */
     Referralrewards selectReferralrewardsById(String id);


     Referralrewards selectReferralrewards();

    /**
     * 修改分享消费奖励
     * 
     * @param referralrewards 分享消费奖励
     * @return 结果
     */
     int updateReferralrewards(ReferralrewardsVo referralrewards);


     /**
     * 查询分享消费奖励列表
     *
     * @param amountViewVo 分享消费奖励
     * @return 分享消费奖励集合
     */
     List<AmountView> selectAmountViewList(AmountViewVo amountViewVo);

    /**
     * 查询分享奖励列表
     * @param amountViewVo
     * @return
     */
     List<ShareAmountView> selectShareAmountViewList(AmountViewVo amountViewVo);


}
